import request from '@/utils/request'

//获取路线
export function getRoute(data) {
  return request({
    url: 'aMap/amap/getRoute',
    method: 'post',
    data
  })
}
//根据经纬度获取路线
export function getAddressByLocation(location) {
  return request({
    url: 'aMap/amap/getAddressByLocation/'+location,
    method: 'post',
  })
}
